<div class="pageContent">
  <form method="post" action="<?php echo Yii::app()->request->requestUri?>" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
    <div class="pageFormContent" layoutH="56">
      <input type="hidden" name="submit" value="1" />
      <?php if(isset($id)): ?>
      <p>
        <label>分类ID：</label>
        <?php echo $id;?>
        <input type="hidden" name="id" value="<?php echo $id;?>" />
      </p>
      <?php endif; ?>
      <?php foreach(Yii::app()->params['langs'] as $lang => $name):?>
      <p>
        <label>分类名称（<?php echo $name ?>）：</label>
        <input name="name[<?php echo $lang?>]" type="text" size="30" value="<?php if(isset($categories)) echo $categories[$lang]->name; ?>" />
      </p>
      <?php endforeach;?>
    </div>
    <div class="formBar">
      <ul>
        <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
        <li>
          <div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
        </li>
      </ul>
    </div>
  </form>
</div>
